package com.hqj.client.controller;

import com.hqj.entity.User;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

@RestController
@RequestMapping("/uc")
public class UserController {

    @RequestMapping("/findUsers")
    public List<User> find(){
        User u1 = new User("hqj123","hqj123","123","男");
        User u2 = new User("hqj123","hqj123","123","男");
        List<User> list = new ArrayList<>();
        list.add(u1);
        list.add(u2);

        return list;
    }

}
